package com.td.module.produce.controller.admin.husbandry.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static com.td.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@ApiModel(value = "管理后台 - 生产管理农事 Excel 导出 Request VO", description = "参数和 HusbandryPageReqVO 是一致的")
@Data
public class HusbandryExportReqVO {

    @ApiModelProperty(value = "农事活动")
    private Integer husbandryEvents;

    @ApiModelProperty(value = "生产信息id", example = "30728")
    private Long infoId;

    @ApiModelProperty(value = "计划日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] planTime;

    @ApiModelProperty(value = "执行状态", example = "2")
    private Integer executeStatus;

    @ApiModelProperty(value = "执行人id", example = "17606")
    private Long memberId;

    @ApiModelProperty(value = "执行时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] executeTime;

    @ApiModelProperty(value = "耗时（时）")
    private Double take;

    @ApiModelProperty(value = "农事图片")
    private String husbandryImg;

    @ApiModelProperty(value = "创建日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}
